package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

/**
 * 系统通知
 */
@Getter@Setter
@AllArgsConstructor@NoArgsConstructor
@JsonIgnoreProperties("handler")
public class SystemNotice extends BaseDomain{
    //用户
    private User user;
    //游记
    private Travel travel;
    //消息内容
    private String message;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    //是否已读，默认未读
    private Boolean readstate;

}